<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page trimDirectiveWhitespaces="true"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>天天生鲜-用户中心</title>
	<link rel="stylesheet" type="text/css" href="static/css/reset.css">
	<link rel="stylesheet" type="text/css" href="static/css/main.css">
</head>
<body>
<jsp:include page="header.jsp"/>
<jsp:include page="search_bar.jsp"/>

	<div class="main_con clearfix">
		<div class="left_menu_con clearfix">
			<h3>用户中心</h3>
			<ul>
				<li><a href="userCenterInfo">· 个人信息</a></li>
				<li><a href="userCenterOrder" class="active">· 全部订单</a></li>
				<li><a href="myAddress">· 收货地址</a></li>
			</ul>
		</div>
		<div class="right_content clearfix">
				<h3 class="common_title2">全部订单</h3>
			<c:forEach items="${list}" var="item" varStatus="vs">
				<ul class="order_list_th w978 clearfix">
					<li class="col01">${item.key.time}</li>
					<li class="col02">订单号：${item.key.order_no}</li>
					<li class="col02 stress">
						<c:choose>
							<c:when test="${item.key.status eq 2}">已付款</c:when>
							<c:when test="${item.key.status eq 3}">已发货</c:when>
							<c:when test="${item.key.status eq 4}">已收货</c:when>
							<c:otherwise>未付款</c:otherwise>
						</c:choose>
					</li>
				</ul>

				<table class="order_list_table w980">
					<tbody>
						<tr>
							<td width="55%">
								<c:forEach items="${item.value}" var="good">
									<ul class="order_goods_list clearfix">
										<li class="col01"><img src="${good.img_url}"></li>
										<li class="col02">${good.good_name}<em>${good.price}元/${good.unit}</em></li>
										<li class="col03">${good.num}</li>
										<li class="col04">${good.price}元</li>
									</ul>
								</c:forEach>
							</td>
							<td width="15%">${item.key.total_price}元</td>
							<td width="15%">
								<c:choose>
									<c:when test="${item.key.pay_style eq 2}">支付宝</c:when>
									<c:when test="${item.key.pay_style eq 2}">微信支付</c:when>
									<c:when test="${item.key.pay_style eq 2}">银行卡支付</c:when>
									<c:otherwise>货到付款</c:otherwise>
								</c:choose></td>
							<td width="15%"><a href="#" class="oper_btn">查看物流</a></td>
						</tr>
					</tbody>
				</table>
			</c:forEach>

				<div class="pagenation">
					<a href="#"><上一页</a>
					<a href="#" class="active">1</a>
					<a href="#">2</a>
					<a href="#">3</a>
					<a href="#">4</a>
					<a href="#">5</a>
					<a href="#">下一页></a>
				</div>
		</div>
	</div>



	<div class="footer">
		<div class="foot_link">
			<a href="#">关于我们</a>
			<span>|</span>
			<a href="#">联系我们</a>
			<span>|</span>
			<a href="#">招聘人才</a>
			<span>|</span>
			<a href="#">友情链接</a>		
		</div>
		<p>CopyRight © 2016 北京天天生鲜信息技术有限公司 All Rights Reserved</p>
		<p>电话：010-****888    京ICP备*******8号</p>
	</div>
	
</body>
</html>